//
//  ThirdViewController.m
//  QYBaseProject
//
//  Created by Dxc_iOS on 2018/7/18.
//  Copyright © 2018年 代星创. All rights reserved.
//

#import "QYThirdViewController.h"

@interface QYThirdViewController ()

@end

@implementation QYThirdViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.view.backgroundColor = [UIColor whiteColor];
    UIButton *btn1 = [UIButton buttonWithType:UIButtonTypeCustom ];
    btn1.backgroundColor = [UIColor redColor];
    MASAttachKeys(btn1);//Masonry 布局冲突快速定位
    [self.view addSubview:btn1];
    [btn1 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.offset(80);
        make.size.mas_equalTo(CGSizeMake(100, 100));
    }];
    
    
//    制造约束冲突
    [btn1 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.offset(100);
        make.size.mas_equalTo(CGSizeMake(100, 100));
    }];
    
    
//BFKit使用
    UIButton * btn222 = [UIButton initWithFrame:CGRectMake(80, 200, 100, 40) title:@"你好你好"];
    btn222.backgroundColor = [UIColor blackColor];
    [self.view addSubview:btn222];
    
    
    
    
    
    
    
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
